package slxy.jiangtao.dts.entity.sys;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;
import slxy.jiangtao.dts.core.common.bean.BaseEntity;
import slxy.jiangtao.dts.core.common.bean.BaseId;
import slxy.jiangtao.dts.core.common.bean.Constants;

import javax.persistence.*;

/**
 * Code must be sexy
 * Created by JiangTao on 2017/1/12.
 *
 * 说明：专业实体
 */
@Entity
@Table(name = "major")
@DynamicInsert
public class Major extends BaseId {

    @Basic
    @Column(name = "name",nullable = false)
    private String name;
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "college_id")
    private Integer collegeId;
    public Integer getCollegeId() {
        return collegeId;
    }

    public void setCollegeId(Integer collegeId) {
        this.collegeId = collegeId;
    }
}
